/**
 * Program   :   LogServiceImpl.java
 * Author    :   shadow guo
 * Create    :   2013-6-15 上午2:44:56
 *
 * Copyright 2008 by Tongfu Information Technology Co. Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of Tongfu Information Technology Co. Ltd. ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with Tongfu Information Technology Co. Ltd.
 * 
 */
package com.tongfusoft.web.core.service.impl;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.tongfusoft.da.help.DBUtils;
import com.tongfusoft.web.core.data.TLogs;
import com.tongfusoft.web.core.service.ILogService;

public class LogServiceImpl implements ILogService{
	/**
	 * Logger for this class
	 */
	private static final Log logger = LogFactory.getLog(LogServiceImpl.class);

	@Override
	public void log(TLogs log) {
		try{
			DBUtils.executeInsert("/logs#T_LOGS", log.getInsertMap());
		} catch (Exception e){
			logger.error(e);
		}
	}

}
